import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'base_device_info_platform_interface.dart';

/// An implementation of [BaseDeviceInfoPlatform] that uses method channels.
class MethodChannelBaseDeviceInfo extends BaseDeviceInfoPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('base_device_info');

  @override
  Future<List?> getPlatformInfo() async {
    final res = await methodChannel.invokeMethod('getPlatformInfo');
    return res;
  }

  @override
  Future<List?> getPlatformCalendar() async {
    final res = await methodChannel.invokeMethod('getPlatformCalendar');
    return res;
  }
}
